// app.js
App({
  globalData: {
    selectedPlantId: 4,
    selectedPlantDisplayId:null,
    user: {
      avatarUrl: '1',
      userName: 'smart',
      nickName:'小绿小绿',
      email: '3073561696@qq.com',
      phone: '15727963569'
    }
  },
  setGlobalData: function (key, value) {
    this.globalData[key] = value;
  },
  getGlobalData: function (key) {
    return this.globalData[key];
  },
  onLaunch: function () {
   
  },
  globalData: {
    userInfo: null
  }
})
